import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { LayerComponent } from './layer.component';
import {HttpClientModule} from '@angular/common/http';
import { RouterModule, Routes } from '@angular/router';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { NgZorroIopModule } from 'ng-zorro-iop';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { FcsServiceStateGuard } from '../authentication/fcs-service-guard';
import { SharedComponentModule } from "../shared-component/shared-component.module";
import { ClipboardModule } from 'ngx-clipboard';
import { LayerCreateComponent } from './create/layer-create.component';
import { LayerUpdateComponent } from './update/layer-update.component';
import { RuntimeComponent } from './create/runtime/runtime.component';
import { LayerDetailComponent } from './detail/layer-detail.component';


const routes: Routes = [
    {
        path: '',
        component: LayerComponent,
        data: {
          breadcrumb: '层管理',
          hasRegion: true
        }
      },
	{
		path: 'create',
		component: LayerCreateComponent,
        data: {
        breadcrumb: '创建层',
        hasRegion: true
        }
       
	},
    {
		path: 'create/runtime',
		component: RuntimeComponent,
        data: {
        breadcrumb: '',
        hasRegion: false
        }
       
	},
    {
		path: 'update',
		component: LayerUpdateComponent,
        data: {
        breadcrumb: '新建层版本',
        hasRegion: true
        }
       
	},
    {
        path:'detail/:id',
        component:LayerDetailComponent,
        data: {
            breadcrumb: '',
            hasRegion: true
         }
        
    }
];

@NgModule({
	imports: [CommonModule,
    HttpClientModule,
    RouterModule,
    RouterModule.forChild(routes),
    NgZorroAntdModule,
    NgZorroIopModule,
    FormsModule,
    ReactiveFormsModule,
    ClipboardModule
	// CommonModule,
    // RouterModule.forChild(routes),
    // FormsModule,
    // ReactiveFormsModule,
    // NgZorroAntdModule,
    // NgZorroIopModule,
    // SharedComponentModule,
    // ClipboardModule
	],
	declarations: [
        LayerComponent,
        LayerCreateComponent,
        LayerUpdateComponent,
        RuntimeComponent,
        LayerDetailComponent],
	providers: [
		FcsServiceStateGuard
	]
})
export class LayerModule { }
